package com.neusoft.neuiotms.dcom.repository.incident;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.incident.IncidentRegister;

/**
 * @author WYS
 * @date 2020年8月18日 下午2:07:39
 */
public interface IncidentRegisterRepository
        extends JpaRepository<IncidentRegister, Long>, CustomizedIncidentRegisterRepository {

    IncidentRegister findByWorkNumAndTaskId(String workNum, String taskId);

    void deleteByWorkNum(String workNum);

}
